/**
 * Created by Wang on 2016/12/14.
 */
module.exports = function(app) {
    return new timeRemote(app);
};

var timeRemote = function(app) {
    this.app = app;
};

/**
 * Add user into chat channel.
 *
 * @param {String} uid unique id for user
 * @param {String} sid server id
 * @param {String} name channel name
 * @param {boolean} flag channel parameter
 *
 */
timeRemote.prototype.getCurrentTime = function (arg1, arg2, cb) {
    console.log("timeRemote - arg1: " + arg1+ "; " + "arg2: " + arg2);
    var d = new Date();
    var hour = d.getHours();
    var min = d.getMinutes();
    var sec = d.getSeconds();
    cb( hour, min, sec);
};